Method and apparatus for three dimensional inspection of electronic components

ABSTRACT

A three dimensional inspection method for inspecting ball array devices having a plurality of balls, where the ball array device is positioned in an optical system. The inspection method includes the steps of illuminating at least one ball on the ball array device, and disposing a sensor, a first optical element and a second optical element in relation to the ball array device so that the sensor obtains at least two differing views of the at least one ball, the sensor providing an output representing the at least two differing views. The output is processed using a triangulation method to calculate a three dimensional position of the at least one ball with reference to a pre-calculated calibration plane.

CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] This application is a continuation-in-part of pending U.S. application Ser. No. 09/351,892 filed Jul. 13, 1999, entitled “Method and Apparatus for Three Dimensional Inspection of Electronic Components,” incorporated by reference herein, that is a continuation-in-part of U.S. Pat. No. 6,072,898 issued Jun. 6, 2000, entitled “Method and Apparatus for Three Dimensional Inspection of Electronic Components,” incorporated by reference herein.

NOTICE RE COPYRIGHT

[0002] A portion of the disclosure of this patent document contains material which is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent disclosure, as it appears in the Patent and Trademark Office patent files or records, but otherwise reserves all copyright rights whatsoever.

FIELD OF THE INVENTION

[0003] This invention relates to a method and apparatus for three dimensional inspection and, more particularly, a method and apparatus for three dimensional inspection of solder balls on ball grid arrays and solder bumps on wafer and die, and to a calibration method.

BACKGROUND OF THE INVENTION

[0004] Prior art three dimensional inspection systems have involved laser range finding technology, moire interferometry, structured light patterns or two cameras. The laser range finding method directs a focused laser beam onto the Ball Grid Array, BGA, and detects the reflected beam with a sensor. Elements of the BGA are determined in the X, Y and Z dimensions utilizing a triangulation method. This method requires a large number of measurement samples to determine the dimensions of the BGA resulting in longer inspection times. This method also suffers from specular reflections from the smooth surfaces of the solder balls resulting in erroneous data.

[0005] Moiré interferometry utilizes the interference of light waves generated by a diffraction grating to produce a pattern of dark contours on the surface of the BGA. These contours are of known distance in the Z dimension from the diffraction grating. By counting the number of contours from one point on the BGA to another point on the BGA, the distance in the Z dimension between the two points can be determined. This method suffers from the problem of low contrast contour lines resulting in missed counting of the number of contours and resulting in erroneous data. This method also suffers from the contour lines merging at surfaces with steep slopes, such as the sides of the balls on the BGA, resulting in an incorrect count of the number of contours and resulting in erroneous data.

[0006] Structured light systems project precise bands of light onto the part to be inspected. The deviation of the light band from a straight line is proportional to the distance from a reference surface. The light bands are moved across the part, or alternately the part is moved with respect to the light bands, and successive images are acquired. The maximum deviation of the light band indicates the maximum height of a ball. This method suffers from specular reflections due to the highly focused nature of the light bands resulting in erroneous data. This method further suffers from increased inspection times due to the number of images required.

[0007] Two camera systems utilize one camera to view the BGA device in the normal direction to determine X and Y dimensions and the second camera to view the far edges of the balls from an angle. The two images are combined to determine the apparent height of each ball in the Z dimension utilizing a triangulation method. This method suffers from the need for a higher angle of view of the ball from the second camera resulting in looking at a point significantly below the top of the ball for BGA's having fine pitch. This method also suffers from limited depth of focus for the second camera limiting the size of BGA's that can be inspected. This system can only inspect BGA's and not other device types such as gullwing and J lead devices.

[0008] The prior art does not provide two separate and opposite side views permitting larger BGA's to be inspected or nonlinear optics to enhance the separation between adjacent ball images in the side perspective view.

[0009] It is therefore a motivation of the invention to improve the accuracy of the measurements, the speed of the measurements, the ability to measure all sizes and pitches of BGA's and to measure other devices including gullwing and J lead parts in a single system.

SUMMARY OF THE INVENTION

[0010] The invention provides an apparatus for three dimensional inspection of an electronic part, wherein the apparatus is calibrated using a precision pattern mask with dot patterns deposited on a calibration transparent reticle, the apparatus for three dimensional inspection of an electronic part comprising a camera and an illuminator for imaging the electronic part, the camera being positioned to obtain a first view of the electronic part, a means for light reflection positioned to reflect a different view of the electronic part into the camera, wherein the camera provides an image of the electronic part having differing views of the electronic part, and a means for image processing the image of the electronic part that applies calculations on the differing views of the image to calculate a three dimensional position of at least one portion of the electronic part.

[0011] The invention further comprises a ring light. The means for light reflection could further comprise a mirror, a prism, or a curved mirror. The electronic part may be a ball grid array, balls on a wafer, or balls on a die.

[0012] The means for imaging provides the image to a frame grabber board. The frame grabber board provides an image data output to a processor to perform a three dimensional inspection of the part.

[0013] The apparatus may further comprise a nonlinear optical element to magnify the second image in one dimension. In the apparatus a maximum depth of focus of a side perspective view allows for a fixed focus system to inspect larger electronic parts, with one perspective view imaging one portion of the electronic part and a second perspective view imaging a second portion of the electronic part. Also, in the apparatus a maximum depth of focus of a side perspective view includes an area of the electronic part including a center row of balls. Furthermore, all of the balls on the electronic part may be in focus resulting in two perspective views for each ball.

[0014] The invention comprises a means for inspecting gullwing and J lead devices.

[0015] The invention further provides a method for three dimensional inspection of a lead on a part, the method comprising the steps of using a camera to receive an image of the lead, transmitting the image of the lead to a frame grabber, providing fixed optical elements to obtain a side perspective view of the lead, transmitting the side perspective view of the lead to the frame grabber, operating a processor to send a command to the frame grabber to acquire images of pixel values from the camera, and processing the pixel values with the processor to calculate a three dimensional position of the lead. State values may be determined from the part itself.

[0016] The lead may be a curved surface lead, a ball, a ball grid array, a formed wire, a stamped metal form or similar object that can be imaged from two separate directions.

[0017] The processor processes the pixel values to find a rotation, an X placement value and a Y placement value of the part relative to world X and Y coordinates by finding points on four sides of the part.

[0018] The invention further provides the steps of using a part definition file that contains measurement values for an ideal part, calculating an expected position for each lead of the part for a bottom view using the measurement values from the part definition file and the X placement value and Y placement value.

[0019] The invention further provides the step of using a search procedure on the image data to locate the lead.

[0020] The invention further provides the step of determining a lead center location and a lead diameter in pixels and storing the lead center location and lead diameter in memory.

[0021] The invention further provides the step of calculating an expected position of a center of each lead in both side perspective views in the image using a known position of each side view from calibration.

[0022] The invention further provides the step of using a subpixel edge detection method to locate a reference point on each lead.

[0023] The invention further provides the step of converting the pixel values into world locations by using pixel values and parameters determined during calibration wherein the world locations represent physical locations of the lead with respect to world coordinates defined during calibration.

[0024] The invention further provides for the calculation of a Z height of each lead in world coordinates in pixel values by combining a location of a center of a lead from a bottom view with a reference point of the same lead from a side perspective view.

[0025] The invention further provides the step of converting the world values to part values using the rotation, the X placement value and the Y placement value to define part coordinates for the ideal part where the part values represent physical dimensions of the lead including lead diameter, lead center location in X part and Y part coordinates and lead height in Z world coordinates.

[0026] The invention further provides the step of comparing ideal values defined in the part file to calculate deviation values that represent a deviation of the center of the lead from its ideal location. The deviation values may include lead diameter in several orientations with respect to the X placement value and Y placement value, lead center in the X direction, Y direction and radial direction, lead pitch in the X direction and Y direction and missing and deformed leads, further comprising the step of calculating the Z dimension of the lead with respect to the seating plane based on the Z world data.

[0027] The invention further provides the step of comparing the deviation values to predetermined tolerance values with respect to an ideal part as defined in the part definition file to provide a lead inspection result.

BRIEF DESCRIPTION OF THE DRAWINGS

[0028] To illustrate this invention, preferred embodiments will be described herein with reference to the accompanying drawings.

[0029]FIG. 1A shows the apparatus of the invention for system calibration.

[0030] FIGS. 1B1, 1B2 and 1B3 show an example calibration pattern and example images of the calibration pattern acquired by the system.

[0031]FIG. 2A shows a flow chart of a method of the invention used for calibration of the bottom view.

[0032]FIG. 2B shows a flow chart of a method of the invention used for determining the state values, and the X and Y world coordinates, of the bottom view of the system.

[0033]FIG. 2C shows a flow chart of a method of the invention used for calibration of the side perspective views.

[0034]FIG. 2D shows a flow chart of a method of the invention used for determining the state values of the side perspective views of the system.

[0035]FIG. 2E shows the relationship of a side perspective angle to the ratio of the perspective dimensions to the non-perspective dimensions.

[0036]FIG. 2F shows a bottom view and a side perspective view of precision dots used in the method for determining a side perspective view angle.

[0037]FIG. 3A shows the apparatus of the invention for part inspection.

[0038] FIGS. 3B1, 3B2 and 3B3 show example images of a part acquired by the system.

[0039]FIG. 4 shows a method of the invention for the three dimensional inspection of balls on a ball grid array.

[0040]FIGS. 5A and 5B together show a flow chart of the three dimensional inspection method of the invention.

[0041]FIGS. 6A and 6B show an example ball of a ball grid array and associated geometry used in a method of the invention for determining the Z position of the ball.

[0042]FIG. 7A shows one example of an image used in the grayscale blob method of the invention.

[0043]FIG. 7B shows one example of an image used with the method of the invention to perform a subpixel measurement of the ball reference point.

[0044]FIG. 8A shows a side perspective image of the calibration pattern magnified in one dimension.

[0045]FIG. 8B shows a side perspective image of the balls on a BGA, magnified in one dimension.

[0046]FIG. 9 shows an apparatus for presenting a BGA for inspection.

[0047]FIGS. 10A and 10B show an example ball of a ball grid array with associated geometry as used with a method of the invention for determining the Z position of a ball using two side perspective views.

[0048]FIG. 11A shows the apparatus of the invention for system calibration, utilizing a single side perspective view.

[0049] FIGS. 11B1, 11B2 and 11B3 show an example calibration pattern and example images of a calibration pattern acquired by the system, utilizing a single side perspective view, of the invention.

[0050]FIG. 12A shows the apparatus of the invention for ball inspection utilizing a single side perspective view.

[0051] FIGS. 12B1, 12B2 and 12B3 show an example ball grid array and example images of the ball grid array for three dimensional inspection, utilizing a single side perspective view.

[0052]FIG. 13 shows the apparatus of the invention for the three dimensional inspection of ball grid array devices, gullwing devices and J lead devices.

[0053]FIG. 14 shows the apparatus of the invention for the three dimensional inspection of parts utilizing three cameras.

[0054]FIG. 15 shows the apparatus of the invention configured with a calibration reticle 1020 for use during calibration of the state values of the system.

[0055]FIGS. 16A and 16B show an example calibration pattern and example images of the calibration pattern acquired by the single camera system.

[0056]FIG. 17 shows the apparatus of the invention configured with a part 1040 to be inspected by the system.

[0057]FIGS. 18A and 18B show a part and example images of a part acquired by the system.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0058] In one embodiment of the invention, the method and apparatus disclosed herein is a method and apparatus for calibrating the system by placing a pattern of calibration dots of known spacing and size on the bottom plane of a calibration reticle. From the precision dots the missing state values of the system are determined allowing for three dimensional inspection of balls on ball grid array devices, BGA devices or balls on wafers or balls on die. In one embodiment of the invention the system may also inspect gullwing and J lead devices as well as ball grid arrays.

[0059] Refer now to FIG. 1A which shows the apparatus of the invention configured with a calibration reticle for use during calibration of the state values of the system. The apparatus obtains what is known as a bottom image 50 of the calibration reticle 20. To take the bottom image 50 the apparatus includes a camera 10 with a lens 11 and calibration reticle 20 with a calibration pattern 22 on the bottom surface. The calibration pattern 22 on the reticle 20 comprises precision dots 24. The camera 10 is located below the central part of the calibration reticle 20 to receive an image 50 described in conjunction with FIG. 1B. In one embodiment the camera 10 comprises an image sensor. The image sensor may be a charged coupled device array. The camera 10 is connected to a frame grabber board 12 to receive the image 50. The frame grabber board 12 provides an image data output to a processor 13 to perform a two dimensional calibration as described in conjunction with FIG. 2A. The processor 13 may store an image in memory 14. The apparatus of the invention obtains an image of a pair of side perspective views and includes using a camera 15 with a lens 16 and a calibration reticle 20. The camera 15 is located to receive an image 60, comprising a pair of side perspective views, described in conjunction with FIG. 1B. Fixed optical elements 30, 32 and 38 provide a first side perspective view and fixed optical elements 34, 36, 38 for a second side perspective view. The fixed optical elements 30, 32, 34, 36 and 38 may be mirrors or prisms. As will be appreciated by those skilled in the art additional optical elements may be incorporated. The camera 15 is connected to a frame grabber board 17 to receive the image 60. The frame grabber board 17 provides an image data output to a processor 13 to perform a two dimensional inspection as described in conjunction with FIG. 2B. The processor 13 may store an image in memory 14. In one embodiment of the invention, the apparatus may contain a nonlinear optical element 39 to magnify the side perspective image 60 in one dimension as shown in FIG. 8A. In another embodiment of the invention optical element 38 may be a nonlinear element. The nonlinear optical elements 38 and 39 may be a curved mirror or a lens.

[0060] FIGS. 1B1, 1B2 and 1B3 show an example image 50 from camera 10 and an example image 60 from camera 15 acquired by the system. The image 50, a bottom view of dot pattern 22, shows dots 52 acquired by camera 10. The dot pattern contains precision dots 24 of known dimensions and spacing. The precision dots 24 are located on the bottom surface of the calibration reticle 20. The image 60 shows two side perspective views of the dot pattern 22. A first side perspective view in image 60 contains images 62 of dots 24 and is obtained by the reflection of the image of the calibration reticle dot pattern 22 off of fixed optical elements 30, 32 and 38 into camera 15. A second side perspective view in image 60 contains images 66 of dots 24 and is obtained by the reflection of the image of the calibration reticle dot pattern 22 off of fixed optical elements 34, 36 and 38 into camera 15.

[0061] Optical element 36 is positioned to adjust the optical path length of a second side perspective view to equal the optical path length of a first side perspective view. Those skilled in the art will realize that any number of perspective views can be utilized by the invention. In one embodiment of the invention, the maximum depth of focus of a side perspective view includes an area of the reticle including the center row of dots. This allows for a fixed focus system to inspect larger parts, with one perspective view imaging half of the part and the second perspective view imaging the other half of the part.

[0062]FIG. 2A shows a flow diagram for the calibration of the bottom view of the system. The method starts in step 101 by providing a transparent reticle 20 having a bottom surface containing a dot pattern 22, comprising precision dots 24 of known dimensions and spacing. The method in step 102 provides a camera 10 located beneath the transparent reticle 20 to receive an image 50. In step 103 the processor 13 sends a command to a frame grabber 12 to acquire an image 50, comprising pixel values from the camera 10. The method then proceeds to step 104 and processes the pixel values with a processor 13.

[0063]FIG. 2B shows a flow diagram for determining the state values of the bottom view of the system. In step 111 the method begins by finding the dots 52 in image 50, corresponding to the calibration dots 24. The processor finds a dimension and position for each dot visible in image 50 in subpixel values using well known grayscale methods and stores these values in memory 14. By comparing these results to known values stored in memory, the processor calculates the missing state values for the bottom calibration in steps 112 and 113. In step 112 the processor 13 calculates the optical distortion of lens 11 and the camera roll angle with respect to the dot pattern 22. Step 113 calculates the pixel width and pixel height by comparing the subpixel data of dots 52 with the known dimensions of the precision dot pattern 22. The pixel aspect ratio is determined from the pixel width and pixel height. In step 114 the processor defines the X and Y world coordinates and the Z=0 plane from the image 50 of the precision dot pattern 22. The processor then stores these results in memory. These results provide conversion factors for use during analysis to convert pixel values to world values.

[0064]FIG. 2C shows a flow diagram for the calibration of the side perspective views of the system. The method starts in step 121 by providing a transparent reticle 20 having a bottom surface containing a dot pattern 22, comprising precision dots 24 of known dimensions and spacing. The method in step 122 provides fixed optical elements 30, 32, 34, 36 and 38 to reflect two perspective images of the precision dot pattern 22 into camera 15. The method in step 123 provides a camera 15 located to receive an image 60. In step 124 the processor 13 sends a command to a frame grabber 12 to acquire an image 60, comprising pixel values from the camera 15. The method then proceeds to step 125 and processes the pixel values with a processor 13.

[0065]FIG. 2D shows a flow diagram for determining the state values of the side perspective views of the system. In step 131 the method begins by finding dots 62 in image 60, corresponding to the calibration dots 24. The processor finds a dimension and position for each dot visible, comprising the group of dots 62, in image 60 for a first side perspective view in subpixel values and stores these values in memory 14. By comparing these results to known values stored in memory, the processor calculates the missing state values for a side perspective view, comprising the group of dots 62, in steps 132 and 133. In step 132 the processor 13 calculates the optical distortion of lens 16 and the camera roll angle with respect to the dot pattern 22. In step 133 the processor 13 calculates the pixel width and pixel height by comparing the subpixel data of dots 62 with the known dimensions of the precision dots 24. The pixel aspect ratio is determined from the pixel width and pixel height. In step 134 the processor defines the X and Y world coordinates and the Z=0 plane from the dots 62 in image 60 of the dot pattern 22. The processor then stores these results in memory. These results provide conversion factors for use during analysis to convert pixel values to world values. In step 135 the method of the invention computes the side view angle. In step 136 the method is repeated for a second side perspective view using the dots 66 in image 60.

[0066]FIG. 2E shows the relationship of a side perspective angle to the ratio of the perspective dimension to the non-perspective dimension. Ray 171, 172, and 173 defining point 181 is parallel to ray 174, 175 and 176 defining point 182. Point 181 and point 182 lie on a plane 170 parallel to a plane 180. The intersection of ray 175 and ray 176 define point 186. The intersection of ray 176 and ray 172 define point 184. The intersection of ray 173 and ray 172 define point 187. The intersection of ray 174 and ray 172 define point 183. The reflecting plane 179 intersecting plane 180 at an angle D is defined by ray 172 and ray 175 and the law of reflectance. Ray 172 and ray 175 intersect plane 170 at an angle 177. Referring to FIG. 2E it can be shown: ${\tan \quad \theta} = \frac{C}{D_{B}}$ $\frac{C}{\sin \quad A} = {{\frac{L}{\sin \quad A}\quad {Therefore}\text{:}\quad C} = L}$ ${\cos \quad \theta} = {\frac{D_{S}}{L} = \frac{D_{S}}{C}}$ $C = \frac{D_{S}}{\cos \quad \theta}$

[0067] Substituting ${\tan \quad \theta} = {\frac{\frac{D_{S}}{\cos \quad \theta}}{D_{B}} = \frac{D_{S}}{D_{B}\cos \quad \theta}}$ ${\left( {\tan \quad \theta} \right)\left( {\cos \quad \theta} \right)} = {\frac{D_{S}}{D_{B}} = {\sin \quad \theta}}$ $\theta = {\arcsin \quad \left( \frac{D_{S}}{D_{B}} \right)}$

[0068]FIG. 2F shows a bottom view and a side perspective view of precision dots used in the method for determining a side perspective view angle 177 as shown in FIG. 2E of the system. A bottom view image 200 comprising precision dots 201, 202 and 203 of known spacing and dimensions from the calibration method described earlier can be used to provide a reference for determination of a side perspective view angle 177. The value D_(H) and D_(B) are known from the bottom view calibration. A side perspective view image 210 comprising precision dots 211, 212 and 213, corresponding to bottom view dots 201, 202 and 203 respectively, of known spacing and dimensions D_(s) and D_(h) from the calibration method described earlier, can be used to determine the side view perspective angle. The ratio of (D_(h)/D_(H)) from the bottom image 200 and the side perspective image 210 can be used in the bottom view to calibrate DB in the same units as the side perspective view as follows:

D _(Bcal) =D _(B)(D _(h/) D _(H))

[0069] Substituting into the equation for the side perspective view angle 177 described earlier yields: $\theta = {{\arcsin \quad \left( \frac{D_{S}}{D_{B}} \right)} = {\arcsin \quad \left( \frac{D_{S}}{D_{Bcal}} \right)}}$ $\theta - {\arcsin \quad \left( \frac{D_{S}D_{H}}{D_{B}D_{h}} \right)}$

[0070]FIG. 3A shows the apparatus of the invention for a three dimensional inspection of the balls of a ball grid array. The apparatus of the invention includes a part 70 to be inspected. The apparatus further includes a camera 10 with a lens 11, located below the central area of part 70, to receive a bottom image 80, described in conjunction with FIG. 3B, of part 70. The camera 10 is connected to a frame grabber board 12 to receive the image 80. The frame grabber board 12 provides an image data output to a processor 13 to perform a two dimensional inspection as described in conjunction with FIG. 3A. The processor 13 may store an image in memory 14. The apparatus of the invention obtains an image of a pair of side perspective views with a camera 15 and a lens 16. The camera 15 is located to receive an image 90, comprising a pair of side perspective views, described in conjunction with FIG. 3B and utilizing fixed optical elements 30, 32 and 38 for a first side perspective view and fixed optical elements 34, 36 and 38 for a second side perspective view. In one embodiment of the invention, the apparatus may contain a nonlinear optical element 39 to magnify the side perspective image 60 in one dimension as shown in FIG. 8B. In another embodiment of the invention optical element 38 may be the nonlinear element. The fixed optical elements 30, 32, 34, 36 and 38 may be mirrors or prisms. As will be appreciated by those skilled in the art additional optical elements may be incorporated without deviating from the spirit and scope of the invention. The camera 15 is connected to a frame grabber board 17 to receive the image 90. The frame grabber board 17 provides an image data output to a processor 13 to calculate the Z position of the balls, described in conjunction with FIG. 3B. The processor 13 may store an image in memory 14.

[0071] FIGS. 3B1, 3B2 and 3B3 show an example image 80 from camera 10 and an example image 90 from camera 15 acquired by the system. The image 80 shows the bottom view of the balls located on the bottom surface of a part 70. The image 90 shows two side view perspectives of the balls located on part 70. A first side perspective view in image 90 contains images of balls 91 and is obtained by the reflection of the image of the part 70 off of fixed optical elements 30, 32 and 38 into camera 15. A second side perspective view in image 90 contains images of balls 92 and is obtained by the reflection of the image of the part 70 off of fixed optical elements 34, 36 and 38 into camera 15. Optical element 36 is positioned to adjust the optical path length of a second side perspective view to equal the optical path length of a first side perspective view. In one embodiment of the invention, the maximum depth of focus of a side perspective view just includes an area of the part including the center row of balls. This allows for a fixed focus system to inspect larger parts, with one perspective view imaging at least half of the part and the second perspective view imaging at least the other half of the part. Those skilled in the art will realize that any number of perspective views can be utilized by the invention. In another embodiment of the invention, all of the balls are in focus from both side perspective views resulting in two perspective views for each ball. This permits two Z calculations for each ball as shown in conjunction with FIGS. 10A and 10B.

[0072]FIG. 4 shows a flow diagram for the three dimensional inspection of balls on a ball grid array. The method starts in step 141 by providing a part 70 having balls 71 facing down. The method in step 142 provides a camera 10 located beneath the part 70 to receive an image 80. In step 143 a frame grabber 12 is provided to receive the image 80 from camera 10. In step 144, fixed optical elements are provided for obtaining two side perspective views of the part 70. A first optical path is provided by optical elements 30, 32 and 38. A second optical path is provided by optical elements 34, 36 and 38. A second camera 15 receives an image 90 of two side perspective views in step 145. In step 146 a second frame grabber board 17 is provided to receive the image 90 from camera 15. A processor 13 sends a command to frame grabbers 12 and 17 to acquire images 80 and 90 comprising pixel values from cameras 10 and 15. The method then proceeds to step 147 and processes the pixel values with a processor 13 to obtain three dimensional data about part 70.

[0073] The invention contemplates the inspection of parts that have ball shaped leads whether or not packaged as a ball grid array. The invention also contemplates inspection of leads that present a generally curvilinear profile to an image sensor.

[0074]FIGS. 5A and 5B together show a flow chart of the three dimensional inspection method of the invention. The process begins in step 151 by waiting for an inspection signal. When the signal changes state, the system initiates the inspection. The processor 13 sends a command to frame grabber boards 12 and 17 to acquire images 80 and 90 respectively of part 70 having balls 71. In step 152, camera 10 captures an image 80 comprising pixel values and camera 15 captures an image 90 comprising pixel values and the processor stores the images in memory 14. The images comprise information from both a bottom view and two side perspective views as shown in FIG. 3B. In step 153, the inspection system sends a signal to a part handler shown in FIG. 9 to allow the part handler to move the part out of the inspection area and allows the next part to be moved into the inspection area. The handler may proceed with part placement while the inspection system processes the stored image data.

[0075] The inspection system processes the pixel values of the stored image 80 in step 154 to find a rotation, and X placement and Y placement of the part relative to the world X and Y coordinates. The processor determines these placement values finding points on four sides of the body of the part. In step 155, the processor employs a part definition file that contains values for an ideal part.

[0076] By using the measurement values from the part definition file and the placement values determined in step 154, the processor calculates an expected position for each ball of the part for the bottom view contained in image 80. The processor employs a search procedure on the image data to locate the balls 81 in image 80. The processor then determines each ball's center location and diameter in pixel values using grayscale blob techniques as described with respect to FIG. 7A. The results are stored in memory 14.

[0077] The processor proceeds in step 156 to calculate an expected position of the center of each ball in both side perspective views in image 90 using the known position of each side view from calibration. The processor employs a subpixel edge detection method described with respect to FIG. 7B to locate a reference point on each ball in step 157. The results are stored in memory 14.

[0078] Now refer to FIG. 5B. In step 158 the processor converts the stored pixel values from steps 154 and 157 into world locations by using pixel values and parameters determined during calibration. The world locations represent physical locations of the balls with respect to the world coordinates defined during calibration.

[0079] In step 159 the Z height of each ball is calculated in world coordinates in pixel values. The method proceeds by combining the location of the center of a ball from the bottom view 80 with the reference point of the same ball from a side perspective view in image 90 as described in FIGS. 6A and 6B. The processor then converts the world values to part values using the calculated part rotation, and X placement and Y placement in step 160 to define part coordinates for the ideal part. The part values represent physical dimensions of the balls such as ball diameter, ball center location in X part and Y part coordinates and ball height in Z world coordinates.

[0080] In step 161 these part values are compared to the ideal values defined in the part file to calculate the deviation of each ball center from its ideal location. In one example embodiment of the invention the deviation values may include ball diameter in several orientations with respect to the X and Y part coordinates, ball center in the X direction, Y direction and radial direction, ball pitch in the X direction and Y direction and missing and deformed balls. The Z world data can be used to define a seating plane, using well known mathematical formulas, from which the Z dimension of the balls with respect to the seating plane can be calculated. Those skilled in the art will recognize that there are several possible definitions for seating planes from the data that may be used without deviating from the spirit and scope of the invention.

[0081] In step 162 the results of step 161 are compared to predetermined thresholds with respect to the ideal part as defined in the part file to provide an electronic ball inspection result. In one embodiment the predetermined tolerance values include pass tolerance values and fail tolerance values from industry standards. If the measurement values are less than or equal to the pass tolerance values, the processor assigns a pass result for the part. If the measurement values exceed the fail tolerance values, the processor assigns a fail result for the part. If the measurement values are greater than the pass tolerance values, but less than or not equal to the fail tolerance values, the processor designates the part to be reworked. The processor reports the inspection result for the part in step 163, completing part inspection. The process then returns to step 151 to await the next inspection signal.

[0082]FIGS. 6A and 6B show an example ball of a ball grid array and associated geometry used in a method of the invention for determining the Z position of the ball. The method determines the Z position of a ball with respect to the world coordinates defined during calibration. Using parameters determined from the calibration procedure as shown in FIGS. 2B and 2D to define a world coordinate system for the bottom view and the two side perspective views, comprising world coordinate plane 250 with world coordinate origin 251 and world coordinate axis X 252, Y 253 and Z 254 shown in FIG. 6A, and a pair of images 80 and 90 as shown in FIG. 3B, the processor computes a three dimensional location.

[0083] Now refer to FIG. 6A. The processor locates a point 258 on the world plane 250 determined by a bottom view ray 255 passing through the center 257 of a ball 71 on a part 70. The processor locates a side perspective view point 260 on the world plane 250 determined by a side perspective view ray 256 intersecting a ball reference point 259 on ball 71 and intersecting the bottom view ray 255 at a virtual point 261. Ray 256 intersects the world plane 250 at an angle 262 determined by the reflection of ray 256 off of the back surface 263 of prism 30. The value of angle 262 was determined during the calibration procedure.

[0084] Now refer to FIG. 6B. The distance L₁ is calculated by the processor as the difference between world point 258, defined by the intersection of ray 255 with the Z=0 world plane 250, and world point 260, defined by the intersection of ray 256 and the Z=0 world plane 250. The value Z is defined as the distance between world point 261 and 258 and is related to L₁ as follows: ${\tan \quad \theta_{1}} = \frac{Z}{L_{1}}$

[0085] Z=L₁ tan θ₁

[0086] Z can be computed by processor 13 since the angle 262 is known from calibration. The offset E 265 is the difference between the virtual point 261 defined by the intersection of ray 255 and ray 256 and the crown of ball 71 at point 264, defined by the intersection of ray 255 with the crown of ball 71, and can be calculated from the knowledge of the angle 262 and the ideal dimensions of the ball 71. The final value of Z for ball 71 is:

Z _(Final) =Z−E

[0087]FIG. 7A shows one example of an image used in the grayscale blob method of the invention. The image processing method finds the location and dimensions of a ball 71 from a bottom image 80. From the expected position of a ball 71, a region of interest in image 80 is defined as (X1,Y1) by (X2,Y2). The width and height of the region of interest are large enough to allow for positioning tolerances of part 70 for inspection. Due to the design of the lighting for the bottom view, the spherical shape of balls 71 of part 70 present a donut shaped image where the region 281, including the perimeter of the ball 71, comprises camera pixels of higher grayscale values and where the central region 282 comprises camera pixels of lower grayscale values. The remainder 283 of the region of interest 280 comprises camera pixels of lower grayscale values.

[0088] In one embodiment of the invention the processor 13 implements image processing functions written in the C programming language.

[0089] The C language function “FindBlobCenter”, as described below, is called to find the approximate center of the ball 71 by finding the average position of pixels that are greater than a known threshold value. The exact center of the ball 71 can be found by calling the C language function “FindBallCenter” which also returns an X world and Y world coordinate. FIG. 7B shows one example of an image used with the method of the invention to perform a subpixel measurement of the ball reference point. The method of the invention finds a reference point on a ball 71 in an image 90 of a side perspective view as shown in FIG. 3B. From the expected position of a ball 71, a region of interest 290 in image 80 is defined as (X3, Y3) by (X4,Y4). The width and height of the region of interest are large enough to allow for positioning tolerances of part 70 for inspection. Due to the design of the lighting for a side perspective view, the spherical shape of balls 71 of part 70 present a crescent shaped image 291 comprising camera pixels of higher grayscale values and where the remainder 293 of the region of interest 290 comprises camera pixels of lower grayscale values.

[0090] The C language function “FindBlobCenter” is called to compute the approximate center of the crescent image 291 by finding the average position of pixels that are greater than a known threshold value. Using the coordinates of the approximate center of the crescent image 291, the C language function “FindCrescentTop” is called to determine the camera pixel, or seed pixel 292 representing the highest edge on the top of the crescent. The camera pixel coordinates of the seed pixel are used as the coordinates of a region of interest for determining the subpixel location of the side perspective ball reference point.

[0091] One example of grayscale blob analysis and reference point determination implemented in the C language is presented as follows: ////////////////////////////////////////////////////////////////////////////////// // FindBlobCenter - finds the X,Y center of the pixels that have a value greater than THRESHOLD in the region (x1,y1) to (x2,y2) ////////////////////////////////////////////////////////////////////////////////// long FindBlobCenter(int x1, int y1, int x2, int y2, double* pX, double* pY) { int x,y; long Found = 0; long SumX = 0; long SumY = 0; for (x=x1; x<=x2; x++) { for (y=y1; y<=y2; y++) { if (Pixel [x] [y] > THRESHOLD) { SumX += x; SumY += y; Found ++; } } } if (Found > 0) { *pX = (double)SumX / (double)Found; *pY = (double)SumY / (double)Found; } return Found; } ////////////////////////////////////////////////////////////////////////////////// // FindBallCenter - finds the X,Y center of the a BGA ball // using the grayscale values ////////////////////////////////////////////////////////////////////////////////// long FindBallCenter (int x1, int y1, int x2, int y2, double* pX, double* pY) { int x,y; long Found = 0; long Total = 0; long SumX = 0; long SumY = 0; for (x=x1; x<=x2; x++) { for (y=y1; y<=y2; y++) { if (Pixel [x] [y] > THRESHOLD) { SumX += x*Pixel [x] [y]; SumY += y*Pixel [x] [y]; Total += Pixel [x] [y]; Found ++; } } } if (Found > 0) { *pX = (double)SumX / (double)Total; *pY = (double)SumY / (double)Total; } return Found; } ////////////////////////////////////////////////////////////////////////////////// // FindCrescentTop - finds the X,Y top position of a BGA crescent ////////////////////////////////////////////////////////////////////////////////// void FindCrescentTop (int CenterX, int CenterY, int Diameter, int* pX, int* pY) { int x,y,Edge,Max,TopX,TopY; int x1 = CenterX − Diamter / 2; int x2 = CenterX + Diamter / 2; int y1 = CenterY − Diamter / 2; int y2 = CenterY; *pY = 9999; for (x=x1; x<=x2; x++) { Max = −9999; for (y=y1; y<=y2; y++) { Edge = Pixel [x] [y] − Pixel [x] [y−1]; if (Edge > Max) { Max = Edge; TopY = y; TopX = x; } } if (TopY < *pY) { *pX = TopX; *pY = TopY; } } (c) 1997 Scanner Technologies Inc.

[0092]31

[0093]FIG. 8A shows a side perspective image of the calibration pattern magnified in one dimension. FIG. 8A shows a side perspective image 300 of a reticle calibration pattern where the space 303 between dot 301 and dot 302 is magnified, increasing the number of lower value grayscale pixels when compared to a non magnified image.

[0094]FIG. 8B shows a side perspective image of the balls on a BGA, magnified in one dimension. In FIG. 8B a side perspective image 310 of two views are shown where the space 313 between ball image 311 and ball image 312 is magnified, increasing the number of lower value grayscale pixels when compared to a non magnified image. The increased number of lower grayscale value pixels allows for the successful application of the subpixel algorithm.

[0095] In another embodiment of the invention, the method and apparatus disclosed herein is a method and apparatus for calibrating the system by placing a pattern of calibration dots of known spacing and dimensions on the bottom plane of a calibration reticle and for providing for two side perspective views of each ball for the three dimensional inspection of parts.

[0096] From the precision dots the missing state values of the system are determined allowing for three dimensional inspection of balls on BGA devices or balls on wafers or balls on die.

[0097]FIG. 9 shows an example apparatus for presenting a BGA to the system for inspection. An overhead light reflective diffuser 5 includes a vacuum cup assembly 6. The vacuum cup assembly may attach to a BGA part 70 having balls 71 and suspend the BGA part 70 below the overhead light reflective diffuser 5.

[0098]FIGS. 10A and 10B show an example ball on a ball grid array and associated geometry for use with the method of the invention for determining the Z position of a ball with respect to the world coordinates defined during calibration, using two perspective views for each ball. Using parameters determined from the calibration procedure as shown in FIGS. 2B and 2D to define a world coordinate system for the bottom view and the two side perspective views, comprising world coordinate plane 700 with world coordinate origin 701 and world coordinate axis X 702, Y 703 and Z 704 shown in FIG. 10A and FIG. 10B, and a pair of images 80 and 90 as shown in FIG. 3B, the processor computes a three dimensional location.

[0099] Now refer to FIG. 10A. The processor locates a point 709 on the world plane 700 determined by a bottom view ray 705 passing through the center 708 of a ball 717. The processor locates a first side perspective view point 711 on the world plane 700 determined by a side view ray 706 intersecting a ball reference point 710 on ball 717 and intersecting the bottom view ray 705 at a virtual point 714. Ray 706 intersects the world plane 700 at an angle 715 determined by the reflection of ray 706 off of the back surface of prism 30. The value of angle 715 was determined during the calibration procedure. The processor locates a second side perspective view point 713 on the world plane 700 determined by a side view ray 707 intersecting a ball reference point 712 on ball 717 and intersecting the bottom view ray 705 at a virtual point 718. Ray 707 intersects the world plane 700 at an angle 716 determined by the reflection of ray 707 off of the back surface of prism 34. The value of angle 716 was determined during the calibration procedure.

[0100] Now refer to FIG. 10B. The distance L₁ is calculated by the processor as the distance between world point 709 and world point 711. The distance L₂ is calculated by the processor as the distance between world point 713 and world point 709. The value Z₁ is defined as the distance between world point 714 and 709 and is related to L₁ as follows: ${\tan \quad \theta_{1}} = \frac{Z_{1}}{L_{1}}$

[0101] Z₁=L₁ tan θ₁

[0102] The value Z₂ is defined as the distance between world point 718 and 709 and is related to L₂ as follows: ${\tan \quad \theta_{2}} = \frac{Z_{2}}{L_{1}}$

[0103] Z₂=L₂ tan θ₂

[0104] The average of Z₁ and Z₂ are calculated and used as the value for Z of the ball. This method is more repeatable and accurate than methods that use only one perspective view per ball.

[0105] In still another embodiment of the invention, the method and apparatus disclosed herein is a method and apparatus for calibrating the system by placing a pattern of calibration dots of known spacing and dimensions on the bottom plane of a calibration reticle and for providing a single side perspective view for the three dimensional inspection of parts. From the precision dots the missing state values of the system are determined allowing for three dimensional inspection of balls on BGA devices or balls on wafers or balls on die.

[0106]FIG. 11A shows the apparatus of the invention for system calibration, utilizing a single side perspective view. The method and apparatus for calibration of the bottom view is identical to the method and apparatus described earlier in FIG. 2A and 2B for the two side perspective views method. The apparatus for an image of a side perspective view includes a camera 15 with a lens 18 and a calibration reticle 20. The camera 15 is located to receive an image 64 of a side perspective view comprising dots 65, described in conjunction with FIG. 11B, and utilizing fixed optical elements 40 and 42. The fixed optical element 40 may be a mirror or prism. The fixed optical element 42 is a nonlinear element that magnifies the image in one direction. In another embodiment fixed optical element 40 may be this nonlinear element. As will be appreciated by those skilled in the art additional optical elements may be incorporated. The camera 15 is connected to a frame grabber board 17 to receive the image 64. The frame grabber board 17 provides an image data output to a processor 13 to perform a two dimensional inspection as described in conjunction with FIG. 2B. The processor 13 may store an image in memory 14.

[0107] FIGS. 11B1, 11B2 and 11B3 show an example calibration pattern and example images of a calibration pattern acquired by the system, utilizing a single side perspective view, of the invention. FIGS. 11B1, 11B2 and 11B3 show an example image 50 from camera 10 and an example image 64 from camera 15 acquired by the system. The image 50 showing dots 52 acquired by camera 10 includes a bottom view of the dot pattern 22, containing precision dots 24 of known dimensions and spacing, located on the bottom surface of the calibration reticle 20. The image 64 shows a side perspective view of the dot pattern 22, containing precision dots 24 of known dimensions and spacing, located on the bottom surface of the calibration reticle 20. A side perspective view in image 64 contains images of dots 65 and is obtained by the reflection of the image of the calibration reticle dot pattern 22 off of fixed optical element 40, passing through nonlinear element 42 and into camera 15.

[0108] The side perspective calibration is identical to the method shown in FIG. 2C except the fixed optical elements may have different properties.

[0109] The determination of the state values for the side perspective view is identical to the method shown in FIG. 2D except the fixed optical elements may be different and there is only one side perspective view. The principles and relationships shown in FIG. 2E and FIG. 2F apply.

[0110] In still another embodiment employing a single side perspective view, the invention does not include the nonlinear element 42.

[0111]FIG. 12A shows the apparatus of the invention for ball inspection utilizing a single side perspective view. The apparatus of the invention includes a part 70 to be inspected. The apparatus further includes a camera 10 with a lens 11, located below the central area of part 70, to receive a bottom image 80, described in conjunction with FIG. 12B, of part 70. The camera 10 is connected to a frame grabber board 12 to receive the image 80. The frame grabber board 12 provides an image data output to a processor 13 to perform a two dimensional inspection as described in conjunction with FIG. 12B. The processor 13 may store an image in memory 14. The apparatus for an image of a single side perspective view includes a camera 15 with a lens 18. The camera 15 is located to receive an image 94, comprising a single side perspective view, described in conjunction with FIG. 12B and utilizing fixed optical element 40 and nonlinear, fixed optical element 42, to magnify the side perspective view in one dimension. In another embodiment of the invention optical element 40 may be the nonlinear element. The fixed optical element 40 may be a mirror or prism. As will be appreciated by those skilled in the art additional optical elements may be incorporated. The camera 15 is connected to a frame grabber board 17 to receive the image 94. The frame grabber board 17 provides an image data output to a processor 13 to calculate the Z position of the balls, described in conjunction with FIG. 12B. The processor 13 may store an image in memory 14.

[0112] FIGS. 12B1, 12B2 and 12B3 show an example ball grid array and example images of the ball grid array for three dimensional inspection, utilizing a single side perspective view. FIGS. 12B1, 12B2 and 12B3 show an example image 80 from camera 10 and an example image 94 from camera 15 acquired by the system. The image 80 shows the bottom view of the balls 71 located on the bottom surface of a part 70. The image 94 shows a side perspective view of the balls 71 located on part 70. The side perspective view in image 94 contains images of balls 95 and is obtained by the reflection of the image of the part 70 off of fixed optical element 40 and passing through the nonlinear fixed element 42 into camera 15.

[0113] In an alternate embodiment of the invention, the system can be used to inspect other types of electronic parts in three dimensions, such as gullwing and J lead devices. By utilizing only one camera and adding an additional set of prisms on the reticle 400 these other devices may be inspected. The advantage of being able to inspect different devices with the same system includes savings in cost, and floor space in the factory. Additionally this design allows more flexibility in production planning and resource management.

[0114]FIG. 13 shows the apparatus of the invention for the three dimensional inspection of ball grid array devices, gullwing devices and J lead devices. The apparatus described in FIG. 13 allows the inspection of BGA, gullwing and J lead devices all on the same system. The apparatus includes a part 402 to be inspected located over the central area of a transparent reticle 400 with prisms 401 glued to the top surface to receive side perspective views of part 402. A gullwing and J lead inspection device 21 may be integrated into the ball grid array inspection device. One example embodiment of such a gullwing and J lead inspection device is the “UltraVim” scanner from Scanner Technologies of Minnetonka, Minn. The apparatus further includes a camera 10A with a lens 11A, located below the central area of part 402 and reticle 400 to receive a bottom view and side perspective views of part 402. The camera 10A is connected to a frame grabber board 12A to receive an image. The frame grabber board 12A provides an image data output to a processor 13A to perform a three dimensional inspection of part 402. The processor 13A may store an image in memory 14A. These components comprise the hardware of the gullwing and J lead inspection device 21 and are shared by the ball grid array inspection device as described herein.

[0115] The UltraVim is described in U.S. Pat. No. 6,055,054 entitled THREE DIMENSIONAL INSPECTION SYSTEM by Beaty et al., issued Apr. 25, 2000 which is incorporated in its entirely by reference thereto.

[0116] Refer now to FIG. 14. In still another embodiment of the invention, the system may use three cameras to image directly the bottom view and two side perspective views as shown in FIG. 14. FIG. 14 shows the apparatus of the invention for a three dimensional inspection of the balls of a BGA. The apparatus of the invention includes a part 70, with balls 71 to be inspected.

[0117] The apparatus further includes a camera 10 with a lens 11, located below the central area of part 70, to receive a bottom image 80, described in conjunction with FIG. 12B, of part 70. The camera 10 is connected to a frame grabber board 12 to receive the image 80. The frame grabber board 12 provides an image data output to a processor 13 to perform a two dimensional inspection as described in conjunction with FIG. 12B. The processor 13 may store an image in memory 14. The apparatus for an image of a first side perspective view includes a camera 15 with a lens 19.

[0118] The camera 15 is located to receive an image 94, comprising a single side perspective view, described in conjunction with FIG. 12B and utilizing fixed optical element 38, to magnify the side perspective view in one dimension. The camera 15 is connected to a frame grabber board 17 to receive the image 94. The frame grabber board 17 provides an image data output to a processor 13 to calculate the Z position of the balls, described in conjunction with FIG. 12B. The processor 13 may store an image in memory 14. The apparatus for an image of a second side perspective view includes a camera 15 with a lens 19. The camera 15 is located to receive an image similar to 94, comprising a single side perspective view, described in conjunction with FIG. 12B and utilizing fixed optical element 38, to magnify the side perspective view in one dimension. The camera 15 is connected to a frame grabber board 17 to receive the image similar to 94. The frame grabber board 17 provides an image data output to a processor 13 to calculate the Z position of the balls, described in conjunction with FIG. 12B. The processor 13 may store an image in memory 14. In another embodiment, the nonlinear fixed optical element 38 may be missing. In still another embodiment of the invention, only one side perspective view may be utilized.

[0119] In another embodiment of the invention, the method and apparatus disclosed herein is a method and apparatus using a single camera for calibrating the system by placing a pattern of calibration dots of known spacing and size on the bottom plane of a calibration reticle. From the precision dots the missing state values of the system are determined allowing for three dimensional inspection of balls on ball grid array devices, BGA devices or balls on wafers or balls on die.

[0120] Refer now to FIG. 15 which shows one example of the apparatus of the invention configured with a calibration reticle 1020 for use during calibration of the state values of the system. Calibration reticle 1020 is positioned to be viewed by camera 1008. Camera 1008 further comprises a lens 1006. Camera 1008 receives a composite image of the calibration reticle 1020, one portion of the image, through mirror 1002 and an additional portion directly. A frame grabber 1010 receives image information from the camera 1008 and provides processor 1012 with image information of the calibration reticle 1020. The image information and other inspection information may be stored in memory 1014. The apparatus obtains an image 1024 showing a bottom view 1026 containing an image 1031 of a precision dot 1030 and a side view 1028 containing an image 1032 of precision dot 1030 of the calibration reticle 1020 shown in FIG. 16A. This image 1024 is shown in FIG. 16B. To take the image 1024, the apparatus includes a means of illumination 1017, an overhead light diffuser 1015, the camera 1008, with lens 1006, and calibration reticle 1020 with a calibration pattern 1022 on the bottom surface of the calibration reticle 1020. A separate optical element 1002 is positioned below the calibration reticle 1020 to provide an additional perspective or side view 1028 containing an image of precision dot 1032 of the calibration reticle 1020.

[0121] In one embodiment of the invention, the optical element 1002 may comprise a prism. In another embodiment of the invention, the optical element 1002 may comprise a mirror. As will be appreciated by one skilled in the art, the invention will work with any number of side views. The calibration pattern 1021 on the reticle 1020 comprises precision dots 1022. The camera 1008 is located below the central part of the calibration reticle 1020 to receive an image 1024 described in conjunction with FIGS. 16A and 16B. In one embodiment of the invention, the camera 1008 comprises an image sensor. The image sensor may be a charged coupled device array. The camera 1008 is connected to a frame grabber board 1010 to receive the image 1024. The frame grabber board 1010 provides an image data output to a processor 1012 to perform a three dimensional calibration as described in conjunction with FIG. 16B. The principles and relationships shown in FIG. 2E and 2F apply. The processor 1012 may store an image in memory 1014.

[0122] Now refer to FIGS. 16A and 16B which show a calibration reticle 1020 having precision dots 1022. FIG. 16B shows a composite image 1024 of the calibration reticle 1020. The bottom view 1026 shows precision dot 1030 with a first perspective view 1031 and a side view 1028 shows precision dot 1030 with a second perspective view 1032. The system processor processes the composite image 1024 according to the system of equations described herein with the bottom view 1026 and side view 1028 providing information for the solution of the system of equations. The principles and relationships shown in FIG. 2E and FIG. 2F apply.

[0123] In another embodiment of the invention, the method and apparatus disclosed herein is a method and apparatus using a single camera for a three dimensional inspection of balls on ball grid array devices, BGA/CSP devices or balls on wafers or balls on die.

[0124] Refer now to FIG. 17 which shows the apparatus of the invention configured with a part 1040 to be inspected by the system. The apparatus obtains an image 1044 showing a bottom view 1046 containing an image of a ball 1050 and a side view 1048 containing an image of a ball 1052 of the part 1040. To take the image 1044, the apparatus includes a means of illumination 1017 which may be a ring light, camera 1008 with a first optical element, lens 1006, and a part 1040 with a ball 1042 on the bottom surface. In one embodiment of the invention, the means of illumination 1017 lights the bottom surface of the part 1040 to allow imaging the perimeter of the part 1040. In another embodiment of the invention, overhead diffuser 1015 provides illumination for imaging of the perimeter of the part 1040.

[0125] In one example, the means for illumination may comprise reflected light, the lens 1006 may comprise a plurality of lens elements, a pin hole lens or a telecentric lens, and the processor 1012 may comprise a personal computer. Those skilled in the art will understand that the output of the sensor may be transmitted directly to memory without the use of a frame grabber.

[0126] A separate second optical element 1002 is positioned below the bottom plane of part 1040 to provide an additional perspective or side view 1048 of the part 1040 containing an image of the ball 1052 of the part 1040. In one embodiment of the invention, the optical element 1002 may comprise a prism. In another embodiment of the invention, the optical element 1002 may comprise a mirror. As will be appreciated by one skilled in the art, the invention will work with any number of side views. The camera 1008 is located below the central part of the part 1040 to receive an image 1044 described in conjunction with FIG. 18A and 18B. In one embodiment of the invention, the camera 1008 comprises an image sensor. The image sensor may be a charged coupled device array or a complementary metal oxide semiconductor device array. The camera 1008 is connected to a frame grabber board 1010 to receive the image 1044. The frame grabber board 1010 provides an image data output to a processor 1012 to perform a three dimensional inspection of the part 1040 as described in conjunction with FIGS. 18A and 18B. The principles and relationships shown in FIG. 6A and FIG. 6B apply. The processor 1012 may store an image in memory 1014.

[0127] Now refer to FIGS. 18A and 18B which shows a ball grid array 1040 having balls 1042. FIG. 18B shows a composite image 1044 of the ball grid array 1040. The bottom view 1046 shows ball 1050 with a first perspective view 1051 and a side view 1048 shows ball 1050 with crescent shape 1052 with a second perspective view. The system processor processes the composite image 1044 according to the system of equations described herein with the bottom view 1046 and side view 1048 providing information for the solution of the system of equations. The principles and relationships shown in FIG. 6A and FIG. 6B apply.

[0128] The invention has been described herein in considerable detail in order to comply with the Patent Statutes and to provide those skilled in the art with the information needed to apply the novel principles and to construct and use such specialized components as are required. However, it is to be understood that the invention can be carried out by specifically different equipment and devices, and that various modifications, both as to the equipment details and operating procedures, can be accomplished without departing from the scope of the invention itself. 

What is claimed is:
 1. A three dimensional inspection method for inspecting ball array devices having a plurality of balls, wherein the ball array device is positioned in an optical system, the inspection method comprising the steps of: a) illuminating at least one ball on the ball array device; b) disposing a sensor, a first optical element and a second optical element in relation to the ball array device so that the sensor obtains at least two differing views of the at least one ball, the sensor providing an output representing the at least two differing views; and c) processing the output using a triangulation method to calculate a three dimensional position of the at least one ball with reference to a pre-calculated calibration plane.
 2. The three dimensional inspection method of claim 1 wherein the pre-calculated calibration plane comprises a coordinate system having X, Y and Z axes and wherein an X measurement value is proportional to a Z measurement value.
 3. The three dimensional inspection method of claim 1 wherein the pre-calculated calibration plane comprises a coordinate system having X, Y and Z axes and wherein an XY measurement value is proportional to a Z measurement value.
 4. The three dimensional inspection method of claim 1 wherein the pre-calculated calibration plane comprises a coordinate system having X, Y and Z axes and wherein a Y measurement value is proportional to a Z measurement value.
 5. The three dimensional inspection method of claim 1 wherein the triangulation method is based on determining a center of the ball in a first view and determining a ball top location in a second view.
 6. The three dimensional inspection method of claim 1 wherein the pre-calculated calibration plane is defined by measuring a calibration pattern.
 7. The three dimensional inspection method of claim 1 wherein the second optical element comprises a mirror.
 8. The three dimensional inspection method of claim 1 wherein the second optical element comprises a prism.
 9. The three dimensional inspection method of claim 1 wherein one of the at least two differing views is obtained at a low angle of view.
 10. The three dimensional inspection method of claim 1 wherein the sensor and the second optical element are positioned to receive light from different angles relative to the calibration plane.
 11. The three dimensional inspection method of claim 1 wherein the sensor comprises a charged coupled device array.
 12. The three dimensional inspection method of claim 1 wherein the sensor comprises a complementary metal oxide semiconductor device array.
 13. The three dimensional inspection method of claim 1 wherein the processing step further includes the step of applying grayscale edge detection to locate ball positions.
 14. The three dimensional inspection method of claim 1 wherein the processing step further includes the step of applying threshold analysis.
 15. The three dimensional inspection method of claim 1 wherein the first optical element comprises a lens.
 16. The three dimensional inspection method of claim 1 wherein the first optical element comprises a pin-hole lens.
 17. The three dimensional inspection method of claim 1 wherein the first optical element comprises a plurality of lens elements.
 18. The three dimensional inspection method of claim 1 wherein the first optical element comprises a telecentric lens.
 19. The three dimensional inspection method of claim 1 wherein the ball array devices comprise ball grid array devices.
 20. The three dimensional inspection method of claim 1 wherein the ball array devices comprise bump on wafer devices.
 21. The three dimensional inspection method of claim 1 wherein the step of processing the output is carried out on a personal computer.
 22. The three dimensional inspection method of claim 1 wherein the sensor includes a solid state sensor array.
 23. The three dimensional inspection method of claim 1 wherein one of the views comprises a segment having a crescent shape.
 24. A three dimensional inspection method for ball array devices having a plurality of balls, the method comprising the steps of: a) illuminating the ball array device; b) disposing a sensor to receive light at a first angle relative to the ball array device; c) positioning a first optical element to transmit light to the sensor, where the sensor obtains a first view of the ball array device; d) disposing a second optical element to receive light at a second angle different from the first angle and to transmit a second view of the ball array device to the sensor; e) transmitting image information from the sensor; and f) processing the image information by applying triangulation calculations to measurements of the image information so as to calculate a three dimensional position of at least one ball with reference to a pre-calculated calibration plane.
 25. The three dimensional inspection method of claim 24 wherein the calibration plane comprises a coordinate system having X, Y and Z axes and wherein an X measurement value is proportional to a Z measurement value.
 26. The three dimensional inspection method of claim 24 wherein the calibration plane comprises a coordinate system having X, Y and Z axes and wherein an XY measurement value is proportional to a Z measurement value.
 27. The three dimensional inspection method of claim 24 wherein the calibration plane comprises a coordinate system having X, Y and Z axes and wherein a Y measurement value is proportional to a Z measurement value.
 28. The three dimensional inspection method of claim 24 wherein the pre-calculated calibration plane is defined by measuring a calibration pattern.
 29. The three dimensional inspection method of claim 24 wherein the second optical element comprises a mirror.
 30. The three dimensional inspection method of claim 24 wherein the second optical element comprises a prism.
 31. The three dimensional inspection method of claim 24 wherein the step of illuminating comprises the step of illuminating with a ring light.
 32. The three dimensional inspection method of claim 24 wherein the step of illuminating comprises the step of illuminating with a plurality of light emitting diodes.
 33. The three dimensional inspection method of claim 24 wherein the step of illuminating comprises the step of illuminating with reflected light.
 34. The three dimensional inspection method of claim 24 wherein the sensor comprises a charged coupled device array.
 35. The three dimensional inspection method of claim 24 wherein the sensor comprises a complementary metal oxide semiconductor device array.
 36. The three dimensional inspection method of claim 24 wherein the ball array devices comprise ball grid array devices.
 37. The three dimensional inspection method of claim 24 wherein the ball array devices comprise bump on wafer devices.
 38. The three dimensional inspection method of claim 24 wherein the processing step further includes the step of applying grayscale edge detection to locate ball positions.
 39. The three dimensional inspection method of claim 24 wherein the processing step further includes the step of applying threshold analysis.
 40. The three dimensional inspection method of claim 24 wherein the first optical element comprises a lens.
 41. The three dimensional inspection method of claim 24 wherein the first optical element comprises a pin-hole lens.
 42. The three dimensional inspection method of claim 24 wherein the first optical element comprises a plurality of lens elements.
 43. The three dimensional inspection method of claim 24 wherein the first optical element comprises a telecentric lens.
 44. The three dimensional inspection method of claim 24 wherein the step of illuminating comprises the step of illuminating with a ring light.
 45. The three dimensional inspection method of claim 24 wherein the sensor includes a solid state sensor array.
 46. The three dimensional inspection method of claim 24 wherein the step of processing is carried out on a personal computer.
 47. The three dimensional inspection method of claim 24 wherein the second optical element reflects a view to the sensor where at least one ball of the ball array device exhibits a crescent shape.
 48. A three dimensional inspection method for ball array devices having a plurality of balls, the method comprising the steps of: a) illuminating a ball array device; b) disposing a sensor to receive light at a first angle relative to the ball array device, wherein the sensor includes a solid state sensor array; c) disposing a first optical element to transmit light to the sensor, where the sensor obtains a first view of the ball array device; d) disposing a second optical element to receive light at a second angle different from the first angle, and to transfer a second view of the ball array device to the sensor; e) transmitting image information representing the first view and the second view; and f) processing the image information by applying triangulation calculations to measurements of the image information so as to calculate a three dimensional position of at least one ball with reference to a precalculated calibration plane, wherein the calibration plane comprises a coordinate system having X, Y and Z axes, and wherein an X measurement value is proportional to a Z measurement value.
 49. The three dimensional inspection method of claim 48 wherein an XY measurement value is proportional to a Z measurement value.
 50. The three dimensional inspection method of claim 48 wherein a Y measurement value is proportional to a Z measurement value.
 51. The three dimensional inspection method of claim 48 wherein the pre-calculated calibration plane is defined by measuring a calibration pattern.
 52. The three dimensional inspection method of claim 48 wherein the processing step further includes the step of applying grayscale edge detection to locate ball positions.
 53. The three dimensional inspection method of claim 48 wherein the processing step further includes the step of applying threshold analysis.
 54. The three dimensional inspection method of claim 48 wherein the step of illuminating comprises the step of illuminating with a plurality of light emitting diodes.
 55. The three dimensional inspection method of claim 48 wherein step of illuminating comprises the step of illuminating with reflected light.
 56. The three dimensional inspection method of claim 48 wherein the ball array devices comprise ball grid array devices.
 57. The three dimensional inspection method of claim 48 wherein the ball array devices comprise bump on wafer devices.
 58. The three dimensional inspection method of claim 48 wherein the solid state sensor array includes a charged coupled device array.
 59. The three dimensional inspection method of claim 48 wherein the solid state sensor array includes a complementary metal oxide semiconductor array.
 60. The three dimensional inspection method of claim 48 wherein the second optical element comprises a mirror.
 61. The three dimensional inspection method of claim 48 wherein the second optical element comprises a prism.
 62. The three dimensional inspection method of claim 48 wherein the second view comprises a segment having a crescent shape.
 63. The three dimensional inspection method of claim 48 wherein the image acquisition method comprises a frame grabber.
 64. The three dimensional inspection method of claim 48 wherein the step of processing the output is carried out on a personal computer.
 65. The three dimensional inspection method of claim 48 wherein the first optical element comprises a lens.
 66. The three dimensional inspection method of claim 48 wherein the first optical element comprises a pin-hole lens.
 67. The three dimensional inspection method of claim 48 wherein the first optical element comprises a plurality of lens elements.
 68. The three dimensional inspection method of claim 48 wherein the first optical element comprises a telecentric lens.
 69. A three dimensional inspection method for ball array devices having a plurality of balls, the method comprising the steps of: a) measuring a calibration plate to determine a calibration plane; b) illuminating a ball array device; c) disposing a sensor to receive light at a first angle relative to the ball array device, wherein the sensor includes a solid state sensor array; d) disposing a first optical element to transmit light to the sensor, where the sensor obtains a first view of the ball array device; e) disposing a second optical element to receive light at a second angle different from the first angle, and to transfer a second view of the ball array device to the sensor; f) transmitting image information representing the first view and the second view; and g) processing the image information by applying triangulation calculations to measurements of the image information so as to calculate a three dimensional position of at least one ball with reference to the calibration plane, wherein the calibration plane comprises a coordinate system having X, Y and Z axes, and wherein an X measurement value is proportional to a Z measurement value.
 70. A three dimensional inspection process for ball array devices having a plurality of balls, wherein the ball array device is positioned in a fixed optical system, the process comprising the steps of: a) illuminating the ball array device; b) taking a first image of the ball array device with a camera disposed in a fixed focus position relative to the ball array device to obtain a circular doughnut shape image from at least one ball; c) taking a second image of the ball array device with an optical element disposed in a fixed focus position relative to the ball array device to transmit a side view image of the at least one ball to the camera; and d) processing the first image and the second image using a triangulation method to calculate a three dimensional position of the at least one ball with reference to a pre-calculated calibration plane.
 71. The three dimensional inspection process of claim 70 wherein the second image comprises a segment having a crescent shape.
 72. The three dimensional inspection process of claim 70 wherein the calibration plane comprises a coordinate system having X, Y and Z axes and wherein an X measurement value is proportional to a Z measurement value.
 73. The three dimensional inspection process of claim 70 wherein the triangulation method to calculate a three dimensional position of the at least one ball is based on determining a center of the ball in the first image and determining a ball top location in the second image.
 74. The three dimensional inspection process of claim 70 wherein the pre-calculated calibration plane is defined through the step of measuring a calibration pattern.
 75. The three dimensional inspection process of claim 70 wherein the optical element comprises a mirror.
 76. The three dimensional inspection process of claim 70 wherein the second image is obtained at a low angle of view.
 77. The three dimensional inspection process of claim 70 wherein the camera and the optical element are fixed at different angles relative to the calibration plane.
 78. The three dimensional inspection process of claim 70 wherein the camera comprises a charged coupled device array.
 79. The three dimensional inspection process of claim 70 wherein the step of processing the first image and the second image further comprises employing grayscale edge detection to locate ball positions.
 80. The three dimensional inspection process of claim 70 wherein the step of illuminating the ball array device further comprises employing diffuse illumination.
 81. The three dimensional inspection process of claim 70 wherein the ball array devices comprise ball grid array devices.
 82. The three dimensional inspection process of claim 70 wherein the ball array devices comprise bump on wafer devices.
 83. The three dimensional inspection process of claim 70 wherein the triangulation method uses state values derived from the ball array device.
 84. The three dimensional inspection process of claim 1 wherein the triangulation method uses state values derived from the ball array device.
 85. The three dimensional inspection process of claim 24 wherein the triangulation calculations use state values derived from the ball array device.
 86. The three dimensional inspection process of claim 48 wherein the triangulation calculations use state values derived from the ball array device.
 87. The three dimensional inspection method of claim 70 wherein the processing step further includes the step of applying threshold analysis.
 88. The three dimensional inspection method of claim 70 wherein the sensor comprises a charged coupled device array. 